﻿Public Class FirmaGiriş

    Private Sub FirmalarBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FirmalarBindingNavigatorSaveItem.Click
        Me.Validate()

        Me.FirmalarBindingSource.EndEdit()
        Me.FirmalarTableAdapter.Update(Me.FirmaGirişiDataSet.Firmalar)
        Me.KişilerBindingSource.EndEdit()
        Me.KişilerTableAdapter.Update(Me.FirmaGirişiDataSet.Kişiler)

    End Sub

    Private Sub FirmaGiriş_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'UlkelerLookUpDataSet.Ulkeler' table. You can move, or remove it, as needed.
        Me.UlkelerTableAdapter.Fill(Me.UlkelerLookUpDataSet.Ulkeler)
        'TODO: This line of code loads data into the 'FirmaTurLookUpDataSet.FirmaTurleri' table. You can move, or remove it, as needed.
        Me.FirmaTurleriTableAdapter.Fill(Me.FirmaTurLookUpDataSet.FirmaTurleri)
        'TODO: This line of code loads data into the 'FirmaGirişiDataSet.Kişiler' table. You can move, or remove it, as needed.
        Me.KişilerTableAdapter.Fill(Me.FirmaGirişiDataSet.Kişiler)
        'TODO: This line of code loads data into the 'FirmaGirişiDataSet.Firmalar' table. You can move, or remove it, as needed.
        Me.FirmalarTableAdapter.Fill(Me.FirmaGirişiDataSet.Firmalar)

    End Sub

    Private Sub KişilerDataGridView_CellBeginEdit(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles KişilerDataGridView.CellBeginEdit
        Me.FirmalarBindingSource.EndEdit()
        Me.FirmalarTableAdapter.Update(Me.FirmaGirişiDataSet.Firmalar)
    End Sub

    Private Sub FirmaGiriş_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
        SozlesmeGiris.FirmalarTableAdapter.Fill(SozlesmeGiris.FirmalarLookUpDataSet.Firmalar)
    End Sub
End Class